package com.neo.rabbit.simple;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;

/**
 * 
 * 简单模式
 * 
 * @author 00fly
 * @version [版本号, 2021年11月14日]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@Slf4j
@Component
@RabbitListener(queues = "hello")
public class HelloReceiver
{
    @RabbitHandler
    public void process(String hello)
    {
        log.info("Receiver  : {}", hello);
    }
}
